package com.peas.platform.module.icims.contract.basal.controller.vo;

import com.peas.platform.common.core.annotation.Comment;
import com.peas.platform.common.core.vo.BaseVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.*;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("合同模版")
public class ContractTemplateVo extends BaseVo {

    @Comment(value = "合同模版编码")
    @ApiModelProperty(value = "合同模版编码")
    @Size(max = 20, message = "合同模版编码不能超过20个字符")
    private String code;

    @Comment(value = "合同模版名称")
    @ApiModelProperty(value = "合同模版名称")
    @NotBlank(message = "合同模版名称不能为空")
    @Size(max = 200, message = "合同模版名称不能超过200个字符")
    private String name;

    @Comment(value = "合同模版内容")
    @ApiModelProperty(value = "合同模版内容")
    private String content;

    // 【附件表】外键
    @Comment(value = "合同模版导入附件ID")
    @ApiModelProperty(value = "合同模版导入附件ID")
    private Long attachmentId;

    @Comment(value = "备注")
    @ApiModelProperty(value = "备注")
    private String remark;

    @Comment(value = "状态", enumType = "CommonEnableDisable")
    @ApiModelProperty(value = "状态", notes = "枚举取值:CommonEnableDisable")
    @NotBlank(message = "状态不能为空")
    @Size(max = 20, message = "状态不能超过20个字符")
    private String state;

}
